<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}

			#myCan {
				background-color: skyblue;
			}
		</style>
	</head>
	<body>
		<canvas id="myCan" width="1000px" height="800px"></canvas>
		<script type="text/javascript">
			var oC = document.getElementById('myCan');
			var ctx = oC.getContext('2d');
			
			ctx.scale(1.2,0.5);
			ctx.fillRect(100,100,200,100);
			
			/* ctx.translate(500, 400);

			ctx.save();
			ctx.rotate(45 * Math.PI / 180);
			ctx.beginPath();
			ctx.strokeStyle = '#00A902';
			ctx.rect(0, 0, 200, 200);
			ctx.stroke();
			ctx.restore();

			ctx.save();
			ctx.beginPath();
			ctx.rotate(60 * Math.PI / 180);
			ctx.strokeStyle = 'yellow';
			ctx.rect(-100, -100, 200, 200);
			ctx.stroke();
			ctx.restore();


			ctx.beginPath();
			ctx.strokeStyle = '#ff1500';
			ctx.rect(-200, -200, 200, 200);
			ctx.stroke(); */
		</script>
	</body>
</html>
